dates .Where(x => x.HasValue) .Select(x => x.Value.Date) .Distinct() .OrderByDescending(x => x)